package com.shizhan.shizhan4;

public class GouZhao {
    private String name;
    private MoSize moSize;
    private CaiSize caiSize;
    private String color;

    // 主构造函数
    public GouZhao(String name, String color, MoSize moSize, CaiSize caiSize) {
        this.name = name;
        this.color = color;
        this.moSize = moSize;
        this.caiSize = caiSize;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public MoSize getMoSize() {
        return moSize;
    }

    public void setMoSize(MoSize moSize) {
        this.moSize = moSize;
    }

    public CaiSize getCaiSize() {
        return caiSize;
    }

    public void setCaiSize(CaiSize caiSize) {
        this.caiSize = caiSize;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public GouZhao(CaiSize caiSize, String  color) {
        this.caiSize = caiSize;
        this.color = color;
    }

    public GouZhao(MoSize moSize, String  color) {
        this.moSize = moSize;
        this.color = color;
    }

    public void introduce() {
        System.out.println("我是用"+this.getName()+"打印的"+this.getColor()+"纸张");
    }
}
